package com.hailian.fintech.hlrenting_houseserver.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wyt
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hl_lease")
public class Lease implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer id;

    /***
     * 租客id
     */
    private Integer tenantId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date created;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    private Integer cashPledge;

    private Integer price;

    private Integer gatherBefore;

    private Integer gatherFix;

    private Integer detain;

    private Integer pay;

    private String replenish;


}
